const imp = path => {
  return import('@/view/user/' + path)
}

const routes = [
  // 窗体
  {
    path: '',
    component: () => imp('index.vue'),
  },
  {
    path: 'checkout',
    component: () => imp('checkout'),
  },
  {
    path: 'account',
    component: () => imp('account'),
  },
  {
    path: 'config',
    component: () => imp('config'),
  }
]

export default routes